﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NFinal;
using Dapper;
using System.Threading.Tasks;

namespace NFinalCorePlug.Controllers
{
    public class IndexController : BaseController
    {
        public IActionResult Html()
        {
            this.ViewBag.Message = "Hello World!";
            this.ViewBag.Title = "Title";
            return View();
        }
        public IActionResult Ajax()
        {
            this.ViewBag.Message = "Hello Json!";
            this.ViewBag.id = 2;
            this.ViewBag.time = DateTime.Now;
            return Json();
        }
    }
}
